<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	String baseInfoJson = (String) request.getAttribute("baseInfoJson");
	String hospitalVisitJson = (String) request.getAttribute("hospitalVisitJson");
	String diseaseDiagInfoJson = (String) request.getAttribute("diseaseDiagInfoJson");
	String cureInfoJson = (String) request.getAttribute("cureInfoJson");
	String provincesList = (String) request.getAttribute("provincesList");
	String operateInfoJson = (String) request.getAttribute("operateInfoJson");
	String success = (String) request.getAttribute("success");
%>
<link rel="stylesheet"
	href="${basePath}/assets/bootstrap/css/bootstrap.css" />
<link rel="stylesheet"
	href="${basePath}/assets/css/medical_record/home_page.css" />
<link rel="stylesheet" href="${basePath}/assets/css/basic.css" />
<link rel="stylesheet" href="${basePath}/assets/jquery-ui/jquery-ui.css" />


<script type="text/javascript"
	src="${basePath}/assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="${basePath}/assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${basePath}/assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}/assets/layer/layer.js"></script>
<script type="text/javascript"
	src="${basePath}/assets/js/medical_record/home_page.js"></script>
<script type="text/javascript"
	src="${basePath}/assets/js/medical_record/edit_basic_info.js"></script>

<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>




<script type="text/javascript"
	src="${basePath}/assets/My97DatePicker/WdatePicker.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action="${basePath}/report/editBedRelatedIndicatorsForm"
	method="post" id="bedRateUserForm">
	<input type="hidden" id="month" name="month" value="${month}">
	<table style="width: 100%;" cellpadding="0" cellspacing="0" id="table">
		<tbody>
			<tr>

				<td colspan="6" style="text-align: right;"><input type="button"
					value="保存" class="btn" onclick="saveBedIndexInfo()"> <input
					type="button" value="导出" class="btn" onclick="exportBedIndexInfo()">
				</td>
			</tr>

			<tr>
				<td class="tdLabel_7" style="width: 10%">床位相关指标</td>


				<td class="tdLabel_8" colspan="7"><textarea
						style="width: 95%; height: 150px" name="note">${bedIndexInfo.bedIndexText}</textarea>
				</td>
			</tr>

			<tr>
				<td class="tdLabel_7" style="width: 10%">说明</td>
				<td class="tdLabel_8" colspan="7"><textarea
						style="width: 95%; height: 120px" id="note">${bedIndexInfo.bedIndexNote}</textarea>
				</td>
			</tr>

			<tr>



				<td class="tdLabel_8" colspan="7" style="width: 780px">
					<div style="height: auto;">
						<table class="Search_tableList" style="margin: 0 auto;"
							id="diseaseDiagTable" cellpadding="0" cellspacing="0">

							<thead>
								<tr>
									<td colspan="6" style="text-align: center; font-size: 16px;">
										表1 床位相关指标</td>
								</tr>

								<tr>
									<td class="tdLabel_4" width="14.2%"></td>
									<td class="tdLabel_4" width="14.2%">平均开放床位数（张）</td>
									<td class="tdLabel_4" width="14.2%">实际开放总床日数</td>
									<td class="tdLabel_4" width="14.2%">实际占用总床日数</td>
									<td class="tdLabel_4" width="14.2%">出院者占用总床日数</td>
									<td class="tdLabel_4" width="14.5%">病床周转率（次）</td>
									<td class="tdLabel_4" width="14.5%">病床使用率（%）</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="bedRecord"
									items="${bedIndexInfo.bedIndexRecordList}">
									<tr>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.title}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.realBeds}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.actualAvailableBedDays}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.actualUseBedDays}' /></td>
										<td class="tdLabel_8" width="14.2%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.dischargedBedDays}' /></td>
										<td class="tdLabel_8" width="14.5%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.bedRoateRate}' /></td>
										<td class="tdLabel_8" width="14.5%"><input
											class="input_box" type="text" style="width: 95%"
											value='${bedRecord.bedUseRate}' /></td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</td>
			</tr>







		</tbody>
	</table>


</form>





<script>
	//保存
	function saveBedIndexInfo() {
		var note = $("#note").val();
		$.ajax({
			type : "post",
			data : {
				note : note
			},
			url : "${basePath}/report/saveBedIndexInfo",
			success : function(data) {
				layer.alert(data.msg,{icon:1});
			}
		})

	}

	function exportBedIndexInfo() {
		window.location.href = "${basePath}/report/exportBedIndexInfoWord";
	}
</script>